/*
 * @Author: Grant
 * @Date: 2020-12-26 20:48:40
 * @LastEditTime: 2020-12-27 15:44:44
 * @LastEditors: Grant
 * @FilePath: \nest-crud-basic\src\users\users.model.ts
 */
import { prop } from '@typegoose/typegoose';
import { IsNumber, IsString } from 'class-validator';
export class User {
  @IsString()
  @prop({ required: true })
  public name: string;

  @IsNumber()
  @prop({ required: true })
  public phoneNumber: number;

  @IsString()
  @prop({ required: true })
  public id: string;
}
